<script>
	import '.env.js'  
	import {
		mapMutations
	} from 'vuex'
	export default {
		globalData: process.uniEnv  ,
		methods: {
			...mapMutations(['login'])
		},
		onLaunch: function() {
			const userInfo = uni.getStorageSync('userInfo'); //同步获取本地数据
			//判断本地缓存是否存在数据
			if (userInfo !== "") {
				//传到vuex里面储存起来,并改变登录状态
				this.login(userInfo)
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "./common/common.scss";
	@import url("/components/gaoyia-parse/parse.css");
</style>
